export const limitBy =  function (val,num) {
	let arr = [];
	let des = '';
	if(val.length>num){
		arr = val.slice(0,num);
		des = arr + '...';
	}
	return des;
};